package com.yztc.orangeentertainment.bean.articlecommentall;

import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.Mapping;
import com.litesuits.orm.db.annotation.Table;
import com.litesuits.orm.db.enums.Relation;
import com.yztc.orangeentertainment.config.ChannalDbConfig;

import java.util.List;

/**
 * Created by My on 2016/10/14.
 */
@Table(ChannalDbConfig.TableName.ARTICLECOMMENTALLDATA)
public class ArticleCommentAllDataBean {
    @Column(ChannalDbConfig.ColumnName.PAGE)
    private int page;
    @Column(ChannalDbConfig.ColumnName.TS)
    private int ts;
    /**
     * id : 5876407
     * user : {"id":3887951889072267,"name":"陆晨晨lc","avatar":"http://cdn01.happyjuzi.com/usericonurl/8c07ae78-f3ff-417a-9a23-29ab74ab0660!up1.webp"}
     * content : 哎
     * publish_time : 2016-10-14 09:24:09
     * comment_style : 2
     */
    @Column(ChannalDbConfig.ColumnName.LIST)
    @Mapping(Relation.OneToMany)
    private List<ArticleCommentAllListBean> list;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getTs() {
        return ts;
    }

    public void setTs(int ts) {
        this.ts = ts;
    }

    public List<ArticleCommentAllListBean> getList() {
        return list;
    }

    public void setList(List<ArticleCommentAllListBean> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "ArticleCommentAllDataBean{" +
                "page=" + page +
                ", ts=" + ts +
                ", list=" + list +
                '}';
    }
}
